home *** CD-ROM | disk | FTP | other *** search
/ AppleScript - The Beta Release / AppleScript - The Beta Release.iso / Development Tools / Sample Applications / MenuScripter 1.0d4.1 / MenuScripter Source / MSAEUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-24  |  1.4 KB  |  52 lines  |  [TEXT/MPS ]

  1. /*
  2.     MSAEUtils.h
  3.     
  4.     Version 1.0d4
  5.     
  6.     Copyright © Apple Computer UK Ltd. 1992
  7.     
  8.     All rights reserved.
  9.     
  10.     Produced by : UK Developer Technical Support
  11.     AppleLink   : UK.DTS
  12.  
  13. */    
  14.  
  15. #ifndef __MSAEUTILS__
  16. #define __MSAEUTILS__
  17.  
  18. #include <Types.h>
  19. #include <QuickDraw.h>
  20. #include <Packages.h>
  21. #include <GestaltEqu.h>
  22. #include <Editions.h>
  23. #include <Printing.h>
  24. #include <AppleEvents.h>
  25.  
  26. /**-----------------------------------------------------------------------
  27.     Utility Routines for getting data from AEDesc's
  28.   -----------------------------------------------------------------------**/
  29.     
  30. pascal void GetRawDataFromDescriptor(const AEDesc *theDesc,
  31.                                                                          Ptr     destPtr,
  32.                                                                          Size    destMaxSize,
  33.                                                                          Size    *actSize);
  34.                                                                          
  35. pascal OSErr GetPStringFromDescriptor(const AEDesc *sourceDesc, char *resultStr);
  36.  
  37. pascal OSErr GetIntegerFromDescriptor(const AEDesc *sourceDesc, short *result);
  38.     
  39. pascal OSErr GetBooleanFromDescriptor(const AEDesc *sourceDesc,
  40.                                                                         Boolean *result);
  41.                                                                             
  42. pascal OSErr GetLongIntFromDescriptor(const AEDesc *sourceDesc, 
  43.                                       long   *result);
  44.  
  45. pascal OSErr GetRectFromDescriptor(const AEDesc *sourceDesc, Rect *result);
  46.  
  47. pascal OSErr GetPointFromDescriptor(const AEDesc *sourceDesc,
  48.                                                                   Point  *result);
  49.  
  50. pascal OSErr GetStyledTextFromDescIntoTEHandle(const AEDesc *sourceTextDesc, TEHandle theHTE);
  51.                                                                         
  52. #endif